package com.thug.entities;

import org.anddev.andengine.entity.primitive.Rectangle;
import org.anddev.andengine.entity.scene.Scene;

import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.thug.engine.BaseGameEntity;

public class Wall extends BaseGameEntity {

	Rectangle mRect;
	Body mBody;
	
	public Wall(Rectangle r, Body b) {
		mEntityType = EntityType.ET_WALL;
		mRect = r;
		mBody = b;
	}
	
	
	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void attach(Scene scene) {
		scene.attachChild(mRect);
		
	}

	@Override
	public void detach(Scene scene) {
		scene.detachChild(mRect);
	}

	@Override
	public void update(float elapsedTime) {
		
	}

	@Override
	public void beginContact(Body bodyA, Body bodyB, Vector2 normal,
			Vector2[] points) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void endContact(Body bodyA, Body bodyB, Vector2 normal,
			Vector2[] points) {
		// TODO Auto-generated method stub
		
	}
	
	@Override
	public void dispose() {
		mRect.detachSelf();
		mBody.getWorld().destroyBody(mBody);
		mRect = null;
		mBody = null;
		
	}


	@Override
	public float getRotation() {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public float getX() {
		// TODO Auto-generated method stub
		return 0;
	}


	@Override
	public float getY() {
		// TODO Auto-generated method stub
		return 0;
	}



}
